<script type="text/javascript">
function show(){
	window.location.href='/koperasi/index.php/Jurnal/index/'+$('#bulan').val()+'/'+$('#tahun').val();
}
</script>
<?php 
$bulan0="";$bulan1="";$bulan2="";$bulan3="";$bulan4="";$bulan5="";$bulan6="";$bulan7="";$bulan8="";$bulan9="";$bulan10="";$bulan11="";$bulan12="";
switch ($bulan) {
    case 0:
        $bulan0 = "selected";
        break;
    case 1:
        $bulan1 = "selected";
        break;
    case 2:
        $bulan2 = "selected";
        break;
	case 3:
        $bulan3 = "selected";
        break;
	case 4:
        $bulan4 = "selected";
        break;
	case 5:
        $bulan5 = "selected";
        break;
	case 6:
        $bulan6 = "selected";
        break;
	case 7:
        $bulan7 = "selected";
        break;
	case 8:
        $bulan8 = "selected";
        break;
	case 9:
        $bulan9 = "selected";
        break;
	case 10:
        $bulan10 = "selected";
        break;
	case 11:
        $bulan11 = "selected";
        break;
	case 12:
        $bulan12 = "selected";
        break;
}
?>
<div style="width:85%" >
<div id="steps">
<form id="pembayaran-pinjaman-form" method="post">
<fieldset class="step">
<p class="row">
<label>Pilih Bulan : </label>
<select name="bulan" id="bulan">
<option value="0" <?php echo $bulan0;?> >Semua Bulan</option>
<option value="1" <?php echo $bulan1;?> >JANUARI</option>
<option value="2" <?php echo $bulan2;?> >FEBRUARI</option>
<option value="3" <?php echo $bulan3;?> >MARET</option>
<option value="4" <?php echo $bulan4;?> >APRIL</option>
<option value="5" <?php echo $bulan5;?> >MEI</option>
<option value="6" <?php echo $bulan6;?> >JUNI</option>
<option value="7" <?php echo $bulan7;?> >JULI</option>
<option value="8" <?php echo $bulan8;?> >AGUSTUS</option>
<option value="9" <?php echo $bulan9;?> >SEPTEMBER</option>
<option value="10" <?php echo $bulan10;?> >OKTOBER</option>
<option value="11" <?php echo $bulan11;?> >NOVEMBER</option>
<option value="12" <?php echo $bulan12;?> >DESEMBER</option>
</select>
</p>

<p class="row">
<label>Pilih Tahun : </label>
<select name="tahun" id="tahun">
<option value="0" <?php if ($tahun == "0")echo "selected"; ?> >Semua Tahun</option>
<option value="<?php echo date('Y')?>" <?php if (date('Y') == $tahun)echo "selected"; ?> ><?php echo date('Y')?></option>
<?php for($i=1;$i<=10;$i++){?>
<option value="<?php echo date('Y')-$i?>" <?php if (date('Y')-$i == $tahun)echo "selected"; ?> ><?php echo date('Y')-$i?></option>
<?php }?>
</select>
</p>
<p class="submit">
		<button id="registerButton" type="button" onclick="show();" >Tampilkan</button>&nbsp;
		<button id="registerButton" type="reset">Reset</button>&nbsp;
		<button id="registerButton" type="button" onclick="window.location.href='/koperasi/index.php/PembayaranPinjaman/index/1'">Kembali</button>
	</p>
</fieldset>
</form>
</div>
<div style="width:100%" >
<?php $widget->run(); ?>			
</div>